package com.qf.forumproject.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.forumproject.entity.QfBlog;
import com.qf.forumproject.utils.BlogAndCommentVo;
import com.qf.forumproject.utils.ResultVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (QfBlog)表数据库访问层
 *
 * @author protagonist
 * @since 2022-07-23 11:37:17
 */
 @Mapper
public interface QfBlogDao extends BaseMapper<QfBlog> {
   int updateViews(Integer id);

   //查询所有文章
   List<ResultVo> selectAll();

   //查询文章和所有评论
   List<BlogAndCommentVo> selectBlogAndCommentVos(Integer id);

}
